#ifndef _SOCKETIO_H
#define _SOCKETIO_H
#include "Packet.hpp"

class SocketIO
{
public:
    SocketIO(int fd):_fd(fd) {}
    ~SocketIO() {}
    int recvPeek(char * buff,int len)const;
    int recvn(char * buff, int len);
    Packet recvPacket();
    int readline(char * buff,int maxlen);
    int sendn(const char * buff,int len);
private:
    int _fd;
};
#endif

